package com.his.index.controller;

import com.his.login.entity.UserEntity;
import com.his.login.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;


@Controller
public class IndexController {
    @Resource
    private UserService userService;
    @RequestMapping("/index")
    public String index(Model model){
        UserEntity userEntity = userService.sel(1);
        model.addAttribute("text",userEntity);
        return "index/index";
    }
}
